const mongoose = require("./db");

const userSchema = new mongoose.Schema({
  username: String,
  password: String,
  phone: String,
  src: String,
  video_liked: Array, // 用户点赞视频
  video_shoucang: Array, // 用户收藏视频
});
const cozeSchema = mongoose.Schema({
  text: String,
  users: Array,
  sender: String
})

const userModel = mongoose.model("user", userSchema, "user");
const coze = mongoose.model("coze", cozeSchema, "coze");

module.exports = {
  userModel,
  coze
};
